import request from "@/utils/request";
export function commodityList(data) {
  return request({
    url: "/api/goods/goodsList",
    method: "post",
    data
  });
}
export function goodsOptions(data) {
  return request({
    url: "/api/goods/goodsOptions",
    method: "post",
    data
  });
}
export function erpCommodityList(data) {
  return request({
    url: "/api/goods/searchErpGoods",
    method: "post",
    data
  });
}
export function synchronization(data) {
  return request({
    url: "/api/org/import",
    method: "post",
    data
  });
}
export function setMarkup(data) {
  return request({
    url: "/api/goods/setMarkup",
    method: "post",
    data
  });
}
export function classifyList(data) {
  return request({
    url: "/api/goods/goodsClassList",
    method: "post",
    data
  });
}
export function lockGoods(data) {
  return request({
    url: "/api/goods/lockGoods",
    method: "post",
    data
  });
}
export function inventory(data) {
  return request({
    url: "/api/goods/inventory",
    method: "post",
    data
  });
}
export function outInventory(data) {
  return request({
    url: "/api/goods/outInventory",
    method: "post",
    data
  });
}
//erp商品同步
export function importGood(data) {
  return request({
    url: "/api/goods/importGood",
    method: "post",
    data
  });
}
export function getGoodsStockBySupplier(data) {
  return request({
    url: "/api/goods/getGoodsStockBySupplier",
    method: "post",
    data
  });
}
export function setTaxRate(data) {
  return request({
    url: "/api/goods/setTaxRate",
    method: "post",
    data
  });
}
export function setAliasName(data) {
  return request({
    url: "/api/goods/setAliasName",
    method: "post",
    data
  });
}
//分类列表分类修改名称
export function setClassName(data) {
  return request({
    url: "/api/goods/setClassName",
    method: "post",
    data
  });
}
//分类列表修改税率
export function setClassRate(data) {
  return request({
    url: "/api/goods/setClassRate",
    method: "post",
    data
  });
}
//设置商品层级
export function setGoodsClassLevel(data) {
  return request({
    url: "/api/Goods/setGoodsClassLevel",
    method: "post",
    data
  });
}

//商超商品列表
export function selectErpGoodsList(data) {
  return request({
    url: "/smkapi/goods/selectErpGoodsList",
    method: "post",
    data
  });
}
//商超搜索商品列表(库存购货单专用)
export function selectErpGoodsData(data) {
  return request({
    url: "/smkapi/goods/selectErpGoodsData",
    method: "post",
    data
  });
}
//商超搜索商品列表
export function selectErpGoodsDataNew(data) {
  return request({
    url: "/smkapi/goods/selectErpGoodsDataNew",
    method: "post",
    data
  });
}
//商超搜索商品列表
export function selectBindGoodsData(data) {
  return request({
    url: "/smkapi/goods/selectBindGoodsData",
    method: "post",
    data
  });
}
//商超订单搜索商品列表
export function selectErpOrgGoodsData(data) {
  return request({
    url: "/smkapi/goods/selectErpOrgGoodsData",
    method: "post",
    data
  });
}
//商超分类列表
export function selectErpCategoryList(data) {
  return request({
    url: "/smkapi/category/selectErpCategoryList",
    method: "post",
    data
  });
}

//商超店铺订单列表
export function selectOrderList(data) {
  return request({
    url: "/smkapi/order/selectOrderList",
    method: "post",
    data
  });
}
//商超店铺订单详情
export function findOrderInfo(data) {
  return request({
    url: "/smkapi/order/findOrderInfo",

    method: "post",
    data
  });
}
//商品库存查看
export function inventoryList(data) {
  return request({
    url: "/api/Stock/index",

    method: "post",
    data
  });
}
//商超商品库存列表
export function goodsstockList(data) {
  return request({
    url: "/smkapi/goods/stockList",

    method: "post",
    data
  });
}
//商超商品库存列表(供应商)
export function supplierStockList(data) {
  return request({
    url: "/smkapi/goods/supplierStockList",

    method: "post",
    data
  });
}
//商超购货单商品接口
export function getSupplierBindGoods(data) {
  return request({
    url: "/smkapi/Supplier/getSupplierBindGoods",
    method: "post",
    data
  });
}
//查询商品加价详情
export function getPercentageInfo(data) {
  return request({
    url: "/smkapi/goods/getPercentageInfo",
    method: "post",
    data
  });
}
//设置商品加价信息
export function setPercentageInfo(data) {
  return request({
    url: "/smkapi/goods/setPercentageInfo",
    method: "post",
    data
  });
}
//商超出入库列表
export function information(data) {
  return request({
    url: "/smkapi/goods/information",
    method: "post",
    data
  });
}
//仓库下拉选择框接口
export function selectChooseWarehouse(data) {
  return request({
    url: "/api/Warehouse/selectChooseWarehouse",
    method: "post",
    data
  });
}
//面食配料详情
export function showMaterial(data) {
  return request({
    url: "/smkapi/products/showMaterial",
    method: "post",
    data
  });
}
//面食可加工商品
export function getCanProductList(data) {
  return request({
    url: "/smkapi/products/getCanProductList",
    method: "post",
    data
  });
}
//设置面食配料
export function setMaterial(data) {
  return request({
    url: "/smkapi/products/setMaterial",
    method: "post",
    data
  });
}
//获取配送中心下拉框
export function selectAreaList(data) {
  return request({
    url: "/api/Area/selectAreaList",
    method: "post",
    data
  });
}
//设置入库参考价
export function setReferencePrice(data) {
  return request({
    url: "/smkapi/goods/setReferencePrice",
    method: "post",
    data
  });
}
//入库参考价列表
export function getReferencePriceList(data) {
  return request({
    url: "/smkapi/goods/getReferencePriceList",
    method: "post",
    data
  });
}
//查询门店区域
export function selectOrgAreaData(data) {
  return request({
    url: "/smkapi/option/selectOrgAreaData",
    method: "post",
    data
  });
}
//查询配送中心区域
export function selectRdcAreaData(data) {
  return request({
    url: "/smkapi/option/selectRdcAreaData",
    method: "post",
    data
  });
}
//设置入库箱规
export function setGoodsSpec(data) {
  return request({
    url: "/smkapi/goods/setGoodsSpec",
    method: "post",
    data
  });
}
//设置商品别名
export function setGoodsAlias(data) {
  return request({
    url: "/smkapi/goods/setGoodsAlias",
    method: "post",
    data
  });
}
//商超周转数据统计
export function turnoverList(data) {
  return request({
    url: "/smkapi/Goods/turnoverList",
    method: "post",
    data
  });
}
//商超周转数据统计
export function setGoodsTare(data) {
  return request({
    url: "/smkapi/Goods/setGoodsTare",
    method: "post",
    data
  });
}
//设置商品重量
export function setGoodsWeight(data) {
  return request({
    url: "/smkapi/goods/setGoodsWeight",
    method: "post",
    data
  });
}
//商超周转数据报表
export function goodsTurnover(data) {
  return request({
    url: "/smkapi/goods/goodsTurnover",
    method: "post",
    data
  });
}
//分类加价列表
export function getCategoryInfo(data) {
  return request({
    url: "/smkapi/category/getPercentageInfo",
    method: "post",
    data
  });
}
//设置分类加价
export function setClassPercentage(data) {
  return request({
    url: "/smkapi/category/setClassPercentage",
    method: "post",
    data
  });
}
//设置体积
export function setGoodsVolume(data) {
  return request({
    url: "/smkapi/goods/setGoodsVolume",
    method: "post",
    data
  });
}
